Skip to content

ReactiveView class

Attributes: [DebuggerDisplay("ReactiveView: {Items}")]

Defined in

Namespace: ReactiveList.Views Assembly: ReactiveList.dll Full name: ReactiveList.Views.ReactiveView<T> Modifiers: public sealed

Summary

View source (opens in a new tab)

        Represents a filtered, observable view over a collection that updates in response to changes from an
        observable data stream.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Class hierarchy
classDiagram
class ReactiveView~T~
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. ReactiveView~T~
class IReactiveView~ReactiveView~T~, T~ {
    <>
}
IReactiveView~ReactiveView~T~, T~ <|.. ReactiveView~T~
class IDisposable {
    <>
}
IDisposable <|.. ReactiveView~T~

Implements: INotifyPropertyChanged (opens in a new tab), IReactiveView, T>, IDisposable (opens in a new tab)

Remarks

The view holds an initial snapshot plus ongoing changes from the source stream, applies a filter to every item and batches updates. It raises property change notifications when its contents are updated. Item order follows arrival order rather than source order.

Constructors

NameSummary
.ctorInitializes a new instance of the ReactiveView class from a notification stream and an initial snapshot.

Properties

NameSummary
BatchResetLimitGets or sets the size above which one applied batch raises a single reset instead of one notification per item.
ItemsGets a read-only, observable collection of items of type T.

Methods

NameSummary
ToPropertyAssigns the current collection of items to a property using the specified setter action.
DisposeReleases all resources used by the current instance of the class.

Events

NameSummary
PropertyChangedOccurs when a property value changes.
Inherited members